package com.material.vtool.service;

import com.material.vtool.entity.BTeamInfoEntity;
import com.material.vtool.entity.BTeamRelationEntity;
import com.material.vtool.entity.combinedEntity.CombinedTeamMemberEntity;
import com.material.vtool.entity.combinedEntity.UserTeamEntity;

import java.util.List;

public interface TeamRelationService {
    int saveTeamRelation(BTeamRelationEntity bTeamRelationEntity);

    int updateTeamMember(BTeamRelationEntity bTeamRelationEntity);

    BTeamRelationEntity getTeamMember(Integer userId, Integer teamId);

    List<CombinedTeamMemberEntity> getTeamMemberListByKey(Integer teamId, String key);

    int getTeamMemberByKeyCount(Integer teamId, String key);

    List<CombinedTeamMemberEntity> getTeamMemberList(Integer teamId);

    int getTeamMemberCount(Integer teamId);

    List<UserTeamEntity> getUserTeamList(Integer userId);

    BTeamInfoEntity getUserActiveTeamInfo(Integer userId);

    int updateActiveTeam(Integer userId, Integer teamId);

    int exitTeam(Integer userId, Integer teamId);
}
